@use '../../scss/mixins.scss' as *;
@import '../../../../assets/scss/_variables.scss';

@include b('timezone-time-picker') {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;

  @include e('date-time-picker') {
    flex: 1;
    .el-input__suffix {
      transform: translateX(-26px);
    }
  }

  @include e('view-time') {
    display: flex;
    align-items: center;
    margin-right: 8px;
  }

  @include e('clock-icon') {
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: $text-color-regular !important;

    &:hover {
      color: $color-primary;
    }
  }

  @include when('edit') {
    .el-popover__reference-wrapper {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  @include e('date-picker-popper') {
    padding: 24px 24px 8px 24px;
    width: 300px;
    .el-popover__title {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    @include when('range'){
      width: 400px;
    }
  }

  @include e('row') {
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    @include e('row-icon') {
      margin-left: 8px;
      width: 16px;
      cursor: pointer;

      &:hover {
        color: $color-primary;
      }
    }

    @include e('confirm-button') {
      width: 100%;
    }
  }
}
